msr_matrix Derived Type

type, public :: msr_matrix

A sparse matrix stored in modified sparse row format.


Components

Type Visibility Attributes Name Initial
integer(kind=int32), public, allocatable, dimension(:) :: indices

An NNZ-element array containing the index information.

integer(kind=int32), public :: m = 0

The number of rows in the matrix.

integer(kind=int32), public :: n = 0

The number of columns in the matrix.

integer(kind=int32), public :: nnz = 0

The number of nonzero values in the matrix.

real(kind=real64), public, allocatable, dimension(:) :: values

An NNZ-element array containing the non-zero values from the matrix. The first MIN(M,N) elements contain the diagonal.